﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AirlineProject.Models;
namespace AirlineProject.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["menu"] = "Index";
            return View();
        }
        public ActionResult Offers()
        {
            ViewData["menu"] = "Offers";
            return View();
        }
        public ActionResult Book()
        {
            return View();
        }

        public ActionResult Services()
        {
            ViewData["menu"] = "Services";
            return View();
        }
        public ActionResult Login()
        {
            ViewData["menu"] = "Login";
            return View();
        }
        public ActionResult Contacts()
        {
            ViewData["menu"] = "Contacts";
            return View();
        }
        public ActionResult FlightSchedule()
        {
            ViewData["menu"] = "Schedule";
            return View();
        }
        public ActionResult logout(string user_name)
        {
           if (Session["user_name"] != null)
           {
               Session.Remove("user_name");
           }
           
            return RedirectToAction("index", "Home");
            }
    }
}
